package ext.trace.kernel;

public class KernelPow3 implements Kernel
{
    
    private static final double COEFF = 4.0 / 3.0;
    
    
    public KernelPow3()
    {
        
    }
    
    
    public double eval(double aRadius, double aExtent)
    {
        double rExtent = 1.0 / aExtent;
        double ratio = aRadius * rExtent;
        double eval = COEFF * rExtent * (1.0 - ratio * ratio * ratio);
        return eval;
    }
    
}
